﻿using System.Data.Entity;

namespace Lapkin.Models.DataModels
{
    public class MainContext : DbContext
    {
        //aitorization
        public DbSet<User> Users { get; set; }
        public DbSet<Role> Roles { get; set; }
        //product
        public DbSet<Category> Categories { get; set; }
        public DbSet<Product> Products { get; set; }
        public DbSet<Image> Images { get; set; }
        //property
        public DbSet<ProductProperty> ProductProperties { get; set; }
        public DbSet<ProductPropertyProduct> ProductPropertyProducts { get; set; }
        //variants
        public DbSet<ProductVariant> ProductVariants { get; set; }
        public DbSet<ProductVariantProduct> ProductVariantsProduct { get; set; }
        public DbSet<ProductVariantValue> ProductVariantValues { get; set; }
        //cart
        public DbSet<Cart> Carts { get; set; }
        public DbSet<CartDetail> CartDetails { get; set; }
        public DbSet<CartVariant> CartVariants { get; set; }
        //order
        public DbSet<Order> Order { get; set; }
        public DbSet<OrderDetail> OrderDetails { get; set; }
        public DbSet<OrderVariant> OrderVariants { get; set; }
    }
}